/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: PlayAction.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/17 下午7:02
 * LastModified: 2020/03/17 19:02:17
 */

package com.qolome.knowledge.design.pattern.command.ftp.operation;

import com.qolome.knowledge.design.pattern.command.ftp.FTPServer;
import com.qolome.knowledge.design.pattern.command.ftp.IOperation;
import lombok.extern.slf4j.Slf4j;

/**
 * @author Qolome
 * @version V1.0
 * @Description 播放
 * @date 2020年 03月17日 19:02:23
 */
@Slf4j
public class Upload implements IOperation {

    private FTPServer server;

    public Upload(FTPServer server){
        this.server = server;
    }

    @Override
    public void execute() {
        server.up();
    }
}
